<template>
  <d2-container>

    <br>
    <el-card class="box-card">
    <el-form ref="Form" :model="FormData" :rules="Rules" size="medium" label-width="100px">
  <el-row>
    <el-col :span="12">
      <el-form-item label="客户名称" prop="field108">
        <el-input v-model="FormData.field108" placeholder="请输入客户名称" clearable :style="{width: '100%'}">
        </el-input>
      </el-form-item>
    </el-col>
    <el-col :span="10">
      <el-form-item label="证件类型" prop="field109">
        <el-input v-model="FormData.field109" placeholder="请输入证件类型" readonly :disabled='true'
          :style="{width: '100%'}"></el-input>
      </el-form-item>
    </el-col>
  </el-row>
  <el-row>
    <el-col :span="12">
      <el-form-item label="证件号码" prop="field114">
        <el-input v-model="FormData.field114" placeholder="请输入证件号码" readonly :disabled='true'
          :style="{width: '100%'}"></el-input>
      </el-form-item>
    </el-col>
  </el-row>
  <el-row>
    <el-col :span="12">
      <el-form-item label="评级模板" prop="field117">
        <el-input v-model="FormData.field117" placeholder="请输入评级模板" clearable :style="{width: '100%'}">
        </el-input>
      </el-form-item>
    </el-col>
    <el-col :span="12">
      <el-form-item label="评级日期" prop="field118">
        <el-date-picker v-model="FormData.field118" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
          :style="{width: '100%'}" placeholder="请选择评级日期" clearable></el-date-picker>
      </el-form-item>
    </el-col>
  </el-row>
  <el-row>
    <el-col :span="12">
      <el-form-item label="报表日期" prop="field121">
        <el-date-picker v-model="FormData.field121" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
          :style="{width: '100%'}" placeholder="请选择报表日期" clearable></el-date-picker>
      </el-form-item>
    </el-col>
    <el-col :span="12">
      <el-form-item label="报表口径" prop="field122">
        <el-select v-model="FormData.field122" placeholder="请选择报表口径" clearable :style="{width: '100%'}">
          <el-option v-for="(item, index) in field122Options" :key="index" :label="item.label"
            :value="item.value" :disabled="item.disabled"></el-option>
        </el-select>
      </el-form-item>
    </el-col>
  </el-row>
  <el-row>
    <el-form-item label="备注" prop="field124">
      <el-input v-model="FormData.field124" type="textarea" placeholder="请输入备注"
        :autosize="{minRows: 4, maxRows: 4}" :style="{width: '100%'}"></el-input>
    </el-form-item>
  </el-row>
  <el-form-item size="large">
    <el-button type="primary" @click="submitForm">启动</el-button>
    <el-button @click="resetForm">重置</el-button>
  </el-form-item>
</el-form>

    </el-card>
  </d2-container>
</template>
<script>
export default {
  components: {},
  props: [],
  data () {
    return {
      FormData: {
        field108: undefined,
        field109: undefined,
        field114: undefined,
        field117: undefined,
        field118: null,
        field121: null,
        field122: undefined,
        field124: undefined
      },
      Rules: {
        field108: [{
          required: true,
          message: '请输入客户名称',
          trigger: 'blur'
        }],
        field109: [{
          required: true,
          message: '请输入证件类型',
          trigger: 'blur'
        }],
        field114: [{
          required: true,
          message: '请输入证件号码',
          trigger: 'blur'
        }],
        field117: [{
          required: true,
          message: '请输入评级模板',
          trigger: 'blur'
        }],
        field118: [{
          required: true,
          message: '请选择评级日期',
          trigger: 'change'
        }],
        field121: [{
          required: true,
          message: '请选择报表日期',
          trigger: 'change'
        }],
        field122: [{
          required: true,
          message: '请选择报表口径',
          trigger: 'change'
        }],
        field124: []
      },
      field122Options: [{
        label: '单一',
        value: 1
      }, {
        label: '合并',
        value: 2
      }, {
        label: '汇总',
        value: ''
      }]
    }
  },
  computed: {},
  watch: {},
  created () {},
  mounted () {},
  methods: {
    submitForm () {
      this.$refs.Form.validate(valid => {
        if (!valid) return
        // TODO 提交表单
      })
    },
    resetForm () {
      this.$refs.Form.resetFields()
    }
  }
}

</script>
